<tpl> include file='sys_config.head.html' </tpl>
<div id="doc3">
	<div id="yui-main">
		<div class="yui-g">
 			<div id="divinbox">
				<div class="gtlbar">
					<div class="gtlbar-left">预立项管理 &gt;&gt; 生成人员成本</div>
					<!--<div onclick="location.href='distribute_member.manage.php?action=cost_view'" class="gtlbar-right">
							<input type="button" name="" class="apd" style="width:150px;">
							<b>浏览&打印&审批</b>
					</div>-->
				</div>
				<div class="ctge">
					<div class="ctge-1">
					   <div style="font-size:16px; font-weight:bold; height:30px;">
	    					<a href="project_official.manage.php?action=view&id=<tpl> $project_array.id </tpl>&curpage=<tpl> $curpage </tpl>"><tpl> $project_array.project_name </tpl></a>
	    				</div>
        				<div class="ctge-1-1">
                   		<table cellSpacing="0" cellPadding="0" class="fct" border="0"> 
							<tr style="background-color:#eee">
								<td style="text-align:center; font-size:14px;">
								   客户名称
								</td>
								<td style="text-align:center; font-size:14px;">
								   项目编号
								</td>
								<td style="text-align:center; font-size:14px;">
								   项目执行周期
								</td>
								<td style="text-align:center; font-size:14px;">
								   客户负责人
								</td>
								<td style="text-align:center; font-size:14px;">
								   媒介负责人
								</td>
								<td style="text-align:center; font-size:14px;">
								   财务负责人
								</td>
						    </tr>
        					<tr>
								<td style="text-align:center; ">
									<tpl> $project_array.company_name </tpl>
								</td>
								<td style="text-align:center; ">
									<tpl> $project_array.project_tmpnum </tpl>
								</td>
								<td style="text-align:center; ">
									2011/07/27 - 2011/08/27
								</td>
								<td style="text-align:center; ">
									<tpl> $project_array.customer_name </tpl>
								</td>
								<td style="text-align:center; ">
									李四
								</td>
								<td style="text-align:center; ">
									王五
								</td>
							</tr>
        				</table>
        				<br>
        				<form id="delform" action="distribute_member.manage.php" method="POST">
						<input type="hidden" name="action" id="action" value="update_cost">
						<input type="hidden" name="project_id" value="<tpl> $project_array.id </tpl>">
        				<table cellSpacing="0" cellPadding="0" class="fct" border="0"> 
							<tr style="background-color:#eee">
								<td style="text-align:center; font-size:14px;">
								   员工姓名
								</td>
								<td style="text-align:center; font-size:14px;">
								   工作天数
								</td>
								<td style="text-align:center; font-size:14px;">
								   工作权重
								</td>
								<td style="text-align:center; font-size:14px;">
								   日工资
								</td>
								<td style="text-align:center; font-size:14px;">
								   本期实际人工成本
								</td>
						    </tr>
						    <tpl> section name=loop loop=$member_array </tpl>
        					<tr>
								<td style="text-align:center; ">
									<tpl> $member_array[loop].member_name </tpl>
								</td>
								<td style="text-align:center; ">
									<tpl> $member_array[loop].days </tpl>
								</td>
								<td style="text-align:center; ">
									<tpl> $member_array[loop].scale </tpl>%
								</td>
								<td style="text-align:center; ">
									<tpl> $member_array[loop].day_gongzi </tpl>
								</td>
								<td style="text-align:center; ">
									<tpl> $member_array[loop].total_gongzi </tpl>
								</td>
							</tr>
							<tpl> /section </tpl>
        				</table>
        				<br>
        				<div style=" text-align:center;">
							<input type="button" class="bthl" value="重新分配" onclick="resubmit()">&nbsp;&nbsp;
							<input type="submit" class="bthl" value="提交"> 
						</div>
        				</form>
						</div>
					
					</div>
				</div>	
			</div>
		</div>
	</div>
</div>
<tpl> include file='sys_config.js.html' </tpl>
<script>
function resubmit(){
	$('#action').val('resubmit_cost');
	$('#delform').submit();
}
</script>
</body>
</html>